<template>
 <div id="app">
   <!-- 顶部 -->
    <Header></Header>
    <!-- 路由视图 -->
    <router-view v-slot="{ Component }">
  <transition enter-active-class="animate__animated animate__fadeInRight"
    leave-active-class="animate__animated animate__fadeOutLeft absolute">
    <keep-alive>
      <component :is="Component" />
    </keep-alive>
  </transition>
</router-view>
    <!-- 导航栏 -->
    <div class="menu">
      <!-- 主页导航按钮 -->
      <div class="menu_item">
        <router-link to="/home">
          <el-icon :size="26">
            <i-ep-House />
          </el-icon>
          <div>主页</div>
        </router-link>
      </div>
      <!-- 招聘页按钮 -->
      <div class="menu_item">
        <router-link to="/jobs">
          <el-icon :size="26">
            <i-ep-Search />
          </el-icon>
          <div>招聘</div>
        </router-link>
      </div>
     <!-- 简历页导航按钮 -->
      <div class="menu_item">
        <router-link to="/vitae">
          <el-icon :size="26">
            <i-ep-Tickets />
          </el-icon>
          <div>简历</div>
        </router-link>
      </div>
      <!-- “我的”导航按钮 -->
      <div class="menu_item">
        <router-link to="/mine">
          <el-icon :size="26">
            <i-ep-User />
          </el-icon>
          <div>我的</div>
        </router-link>
      </div>
    </div>
  </div>
</template>

<script setup>
import Header from '@/components/header.vue'
</script>
<style>
#app{
overflow: hidden;
}
.menu{
  width: 100%;
  position: fixed;
  bottom: 0;
  display: flex;
  padding: 10px 0;
  border-top:1px solid #e0e0e0 ;
  background-color: white;
}
.menu_item{
  width: 25%;
  text-align: center;
}
.menu_item a{
  color: #333;
  text-decoration: none;
}
a.active{
  color: #409eff;
}
.absolute{position: absolute;}
</style>